package notes.java.sjms23.t12_iterator;

import java.util.List;

// 具体容器 对象容器
public class ObjectContainer implements MyContainer{

    private List<Object> list;
    
    public ObjectContainer(List<Object> list) {
        this.list = list;
    }
    
    @Override
    public MyIterator getIterator() {
        return new ObjctIterator(list);
    }

}
